import { request } from './axios'

// 获取余额 1
export async function getAvailableBalance(params) {
    return await request({ url: "/api/member/creditUserAction/getUserCreditModel", data: params })
}

// 获取列表信息 2
export async function getIndexListInfo(params) {

    return await request({ url: "/api/member/creditUserAction/listUserCreditOrder", data: params })
}

// 获取验证码 3
export async function getVerificationCode(params) {

    return await request({ url: "/api/member/userAction/sendUserSms", data: params })
}

// 验证验证码 4
export async function verificationVerificationCode(params) {

    return await request({ url: "/api/member/userAction/verifyMsgCode", data: params })
}

// 用户发起签约 5
export async function confirmContract(params) {

    return await request({ url: "/api/member/creditUserAction/confirmContract", data: params })
}

// 获取所有代理商 6


export async function getAttachmentAgentUrl(params) {

    return await request({ url: "/api/member/mchAction/listMchInfo", data: params })
}

// 根据id 查询 个人信息 7

export async function getInfoByIdUrl(params) {

    return await request({ url: "/api/member/userAction/getUserInfoById", data: params })
}

// 获取当前月份的 收入 支出 总和 8
export async function getInfoAmountBill(params) {

    return await request({ url: "/api/member/creditUserAction/listUserAmountBill", data: params })
}

// 开通支付 初始化密码  修改密码  9
export async function initPassword(params) {

    return await request({ url: "/api/member/userAction/updateUserPassword", data: params })
    // return await request({ url: "/api/member/userAction/updateUserPasswordV2", data: params })
}